package com.example.common.mvi

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.net.ApiService
import com.example.net.service
import kotlinx.coroutines.channels.Channel

open class BaseViewModel<I,S>:ViewModel() {
	val service:ApiService by lazy {
		service()
	}
	val intent by lazy {
		Channel<I>(Channel.UNLIMITED)
	}
	val state by lazy {
		MutableLiveData<S>()
	}
}